{if $full_page}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>权限管理</title>
<link rel="stylesheet" type="text/css" href="Res/index/css/Iframe.css" />
<link rel="stylesheet" href="Res/index/utilLib/bootstrap.min.css" type="text/css" media="screen" />
<script type="text/javascript" src="Res/js/jquery-1.8.3.min.js"></script>
<script type="text/javascript" src="Res/js/listTable.js"></script>
<link rel="stylesheet" href="Res/css/page.css" type="text/css" media="screen" />
{literal}
<style type="text/css">
  .listDiv{
      margin:0 auto;
      text-align: center;
      width:90%;
  }
  table thead th {text-align: center;}
</style>
{/literal}
</head>

<body>
<span class="cp_title">权限管理</span>
<div class="add_cp">
	<a href="index.php?c=action&m=create">+添加权限</a>
</div>
<div class="listDiv" id="divid">
{/if}
    <table id="data_table_id" class="table table-hover table-bordered">
        <thead>
    	<tr>
            <th>ID</th>
            <th>自增ID</th>
            <th>父ID</th>
            <th>权限代码</th>
            <th>权限URL</th>
            <th>权限中文</th>
            <th>操作</th>
        </tr>
        </thead>
        <tbody>   
            {foreach from=$list item=row}
            <tr>
                <td>{$row.id}</td>
                <td>{$row.action_id}</td>
                <td>{$row.parent_id}</td>
                <td>{$row.action_code}</td>
                <td>{$row.action_url}</td>
                <td>{$row.action_chinese}</td>
                <td>-</td>
            </tr>
            {/foreach}
        </tbody>
    </table>
      <!-- 分页数据 -->
  <div class="iPageHtml">{$pagehtml}</div>
{if $full_page}
</div>
<div style="clear:both;"></div>
<script type="text/javascript">
listTable.c = 'test';
listTable.m = 'query';
listTable.id = 'divid';
</script>
</body>
</html>
{/if}